import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import App from './App';
import './assets/styles/index.scss';
import store from './store';

// 导入相对时间插件
import dayjs from 'dayjs';
import RelativeTime from 'dayjs/plugin/relativeTime';
// 导入中文语言包
import 'dayjs/locale/zh-cn.js';
dayjs.locale('zh-cn');
// 继承插件
dayjs.extend(RelativeTime);

ReactDOM.render(
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);
